<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html lang=zh-CN>
<head>
    <c:import url="/WEB-INF/views/head/inc.jsp"/>
</head>
<body>

<div style="width:800px;margin: 20px auto;">
    <h2>Hello World!</h2>
    <c:choose>
        <c:when test="${sessionScope.userdto==null}">
            <p>
                <a href="login">登录</a> <a href="register">注册</a>
                <c:out value="${sessionScope.abc}"/>
            </p>
        </c:when>
        <c:otherwise>
            <p>
                Welcome, <a href="#"><c:out value="${sessionScope.userdto.nickname}"/></a>!
                <a href="logout">登出</a>
            </p>
        </c:otherwise>
    </c:choose>
</div>
</body>
</html>
